<!DOCTYPE html>
<html>
<head>
    <title>历史上的今天</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimal-ui, minimum-scale=1.0, maximum-scale=1.0">
    <style>
    body{margin:0px;}
    .head{
    background: #666;
    color: #Fff;
    text-align: center;
    height: 38px;
    line-height: 38px;
    }
    .x{
    margin-top: 18px;  
    }
    .box{
    padding: 12px;
    }
    </style>
</head>
<body>
<div class="head">历史上的今天</div>
<div class="box">
<?php
$result = file_get_contents("https://query.asilu.com/today/list/");
$json = json_decode($result,true);
//echo $json['districts']['0']['districts']['0']['name'];
foreach ($json['data'] as $key => $value)
{
    //$key = $key+1;
    echo '<div class="x"><span>'.$value['year'].'</span>.';
    echo $value['title'].'</div>';
}
?>
<div>
</body>
</html>